<?php

    /*** error reporting on ***/
    error_reporting(E_ALL);

    $site_path = realpath(dirname(__FILE__));
    define ('__SITE_PATH', $site_path);

    include 'core/init.php';
    
    $base = new base;

    $base->router = new Router($base);
    
    $base->router->setPath (__SITE_PATH . '/controller');
    
     /* load up the view */
    $base->view = new View($base);
    
    /* load the controller */
    $base->router->loader();
?>